
<div id="dataArea">
    <form role="form" method="post" action="{:U(ACTION_NAME)}">
        <!-- general form elements -->
        <div class="box-body" style="padding-bottom:0">

            <form role="form" method="post" action="{:U(ACTION_NAME)}">
                <if condition="ACTION_NAME eq 'edit'">
                    <input type="hidden" id="nid" name="nid" value="{$res.nid}">
                </if>

                <div class="col-md-6">
                    <!-- general form elements -->
                    <div class="box box-primary">
                        <div class="box-body">
                            <div class="form-group">
                                <label for="title">名称</label>
                                <input type="text" placeholder="" id="title" name="title" value="{$res.title}" class="form-control">
                            </div>
                            <div class="form-group">
                                <label for="module">模块</label>
                                <input type="text" placeholder="" id="module" name="module" value="{$res.module}" class="form-control">
                            </div>
                            <div class="form-group">
                                <label for="controller">控制器</label>
                                <input type="text" placeholder="" id="controller" name="controller" value="{$res.controller}" class="form-control">
                            </div>
                            <div class="form-group">
                                <label for="action">动作</label>
                                <input type="text" placeholder="" id="action" name="action" value="{$res.action}" class="form-control">
                            </div>
                            <div class="form-group">
                                <label for="param">参数</label>
                                <input type="text" placeholder="" id="param" name="param" value="{$res.param}" class="form-control">
                            </div>

                        </div><!-- /.box-body -->
                    </div><!-- /.box -->
                </div>
                <!-- /.col-md -->

                <div class="col-md-6">
                    <!-- general form elements -->
                    <div class="box box-primary">
                        <div class="box-body">

                            <div class="form-group">
                                <label for="pid">上级菜单</label>
                                <select id="pid" name="pid" class="form-control">
                                    <option value="0">一级菜单</option>
                                    <volist name="node" id="n">
                                        <if condition="$n[_level] lt 3">
                                            <option value="{$n.nid}"<if condition="$n[nid] eq $pid">selected="selected"</if>>{$n._name}</option>
                                        </if>
                                    </volist>
                                </select>
                            </div>

                            <div class="form-group">
                                <label>状态</label>
                                <div class="radio">
                                    <label>
                                        <input type="radio" id="isShowRadio1" name="is_show" value="1"
                                        <if condition="$res[is_show] eq 1">checked="checked"</if>
                                        />
                                        显示
                                    </label>
                                </div>
                                <div class="radio">
                                    <label>
                                        <input type="radio" id="isShowRadio2" name="is_show" value="0"
                                        <if condition="$res[is_show] eq 0">checked="checked"</if>
                                        />
                                        隐藏
                                    </label>
                                </div>
                            </div>

                            <div class="form-group">
                                <label for="type">类型</label>
                                <select name="type" id="type" class="form-control">
                                    <option value="1"
                                    <if condition="$res[type] eq 1">selected="selected"</if>
                                    >菜单+权限控制</option>
                                    <option value="2"
                                    <if condition="$res[type] eq 2">selected="selected"</if>
                                    >普通菜单</option>
                                </select>
                            </div>

                            <div class="form-group">
                                <label for="comment">备注</label>
                                <textarea placeholder="" rows="3" id="comment" name="comment" class="form-control">{$res.comment}</textarea>
                            </div>
                        </div><!-- /.box-body -->
                    </div><!-- /.box -->
                </div>
                <!-- /.col-md -->

            </form>

        </div><!-- /.box-body -->
    </form>
</div>